package com.atguigu.gulimall.jvm.demo;

public class MemoryDemo {
    public static void main(String[] args) {
        long totalMemory = Runtime.getRuntime().totalMemory();
        long maxMemory = Runtime.getRuntime().maxMemory();
        System.out.println("-Xms大小"+(totalMemory/(double)1024/1024)+"M");
        System.out.println("-Xmx大小"+(maxMemory/(double)1024/1024)+"M");
    }
}
